<html>
<head>
<style>
  .ace_editor {
    border: 0;
    width: auto;
    height: 100%;
    margin: 0;
    top:0;
    right:0;
    bottom:0;
    left:0;
    z-index: 10000;
    touch-action: none;
  }

  body {
    padding: 0px;
    margin: 0px;
    overflow: hidden;
    -ms-overflow-style: scrollbar;
  }
</style>
</head>
<body>
<textarea id="source"><!--

    Sencha GXT 1.0.0-SNAPSHOT - Sencha for GWT
    Copyright (c) 2006-2018, Sencha Inc.

    licensing@sencha.com
    http://www.sencha.com/products/gxt/license/

    ================================================================================
    Commercial License
    ================================================================================
    This version of Sencha GXT is licensed commercially and is the appropriate
    option for the vast majority of use cases.

    Please see the Sencha GXT Licensing page at:
    http://www.sencha.com/products/gxt/license/

    For clarification or additional options, please contact:
    licensing@sencha.com
    ================================================================================








    ================================================================================
    Disclaimer
    ================================================================================
    THIS SOFTWARE IS DISTRIBUTED "AS-IS" WITHOUT ANY WARRANTIES, CONDITIONS AND
    REPRESENTATIONS WHETHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE
    IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, MERCHANTABLE QUALITY,
    FITNESS FOR A PARTICULAR PURPOSE, DURABILITY, NON-INFRINGEMENT, PERFORMANCE AND
    THOSE ARISING BY STATUTE OR FROM CUSTOM OR USAGE OF TRADE OR COURSE OF DEALING.
    ================================================================================

-->
<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent">
<ui:UiBinder 
    xmlns:ui='urn:ui:com.google.gwt.uibinder' 
    xmlns:g="urn:import:com.google.gwt.user.client.ui"
    xmlns:container="urn:import:com.sencha.gxt.widget.core.client.container"
    xmlns:gxt="urn:import:com.sencha.gxt.widget.core.client">

  <ui:with type="java.lang.Boolean" field="borders" />
  <ui:with type="java.lang.Integer" field="margins" />

  <ui:with type="com.sencha.gxt.core.client.util.Margins" field="northMargins">
    <ui:attributes top="{margins}" right="{margins}" bottom="{margins}" left="{margins}" />
  </ui:with>
  <ui:with type="com.sencha.gxt.core.client.util.Margins" field="westMargins">
    <ui:attributes top="0" right="{margins}" bottom="0" left="{margins}" />
  </ui:with>
  <ui:with type="com.sencha.gxt.core.client.util.Margins" field="centerMargins">
    <ui:attributes top="0" right="0" bottom="0" left="0" />
  </ui:with>
  <ui:with type="com.sencha.gxt.core.client.util.Margins" field="eastMargins">
    <ui:attributes top="0" right="{margins}" bottom="0" left="{margins}" />
  </ui:with>
  <ui:with type="com.sencha.gxt.core.client.util.Margins" field="southMargins">
    <ui:attributes top="{margins}" right="{margins}" bottom="{margins}" left="{margins}" />
  </ui:with>

  <ui:with type="com.sencha.gxt.widget.core.client.container.BorderLayoutContainer.BorderLayoutData" field="northData">
    <ui:attributes size="100" margins="{northMargins}" collapsible="true" collapseHeaderVisible="true" split="true" collapseMini="true" />
  </ui:with>
  <ui:with type="com.sencha.gxt.widget.core.client.container.BorderLayoutContainer.BorderLayoutData" field="westData">
    <ui:attributes size="150" margins="{westMargins}" collapsible="true" collapseHeaderVisible="true" split="true" collapseMini="true" />
  </ui:with>
  <ui:with type="com.sencha.gxt.widget.core.client.container.MarginData" field="centerData">
    <ui:attributes margins="{centerMargins}" />
  </ui:with>
  <ui:with type="com.sencha.gxt.widget.core.client.container.BorderLayoutContainer.BorderLayoutData" field="eastData">
    <ui:attributes size="150" margins="{eastMargins}" collapsible="true" collapseHeaderVisible="true" split="true" collapseMini="true" />
  </ui:with>
  <ui:with type="com.sencha.gxt.widget.core.client.container.BorderLayoutContainer.BorderLayoutData" field="southData">
    <ui:attributes size="100" margins="{southMargins}" collapsible="true" collapseHeaderVisible="true" split="true" collapseMini="true" />
  </ui:with>


  <container:BorderLayoutContainer ui:field="con" borders="{borders}">
    <container:north layoutData="{northData}">
      <gxt:ContentPanel heading="North"/>
    </container:north>
    <container:west layoutData="{westData}">
      <gxt:ContentPanel heading="West" />
    </container:west>
    <container:center layoutData="{centerData}">
      <gxt:ContentPanel heading="Center" resize="false">
        <g:FlexTable />
      </gxt:ContentPanel>
    </container:center>
    <container:east layoutData="{eastData}">
      <gxt:ContentPanel heading="East" />
    </container:east>
    <container:south layoutData="{southData}">
      <gxt:ContentPanel heading="South" />
    </container:south>
  </container:BorderLayoutContainer>
</ui:UiBinder>
</textarea>

<script src="../../samples/ace/ace.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
  var type = "xml";
  if (type == ("{" + "type}")) {
    // something went wrong, use java as default
    type = "java";
  }
  var editor = ace.edit("source");
  var mode = "ace/mode/" + type;
  var theme = "ace/theme/chrome";
  var readOnly = true;
  editor.getSession().setMode(mode);
  editor.getSession().setUseWorker(false);
  editor.setTheme(theme);
  editor.setShowPrintMargin(false);
  editor.renderer.setShowGutter(true);
  editor.setHighlightActiveLine(false);
  editor.setDisplayIndentGuides(true);
  editor.setReadOnly(readOnly);
  editor.renderer.setPadding(10);
  editor.renderer.setScrollMargin(10, 10, 0, 0);
  editor.getSession().setOptions({
    tabSize: 8,
    useSoftTabs: true,
    useWrapMode: false,
  });
</script>
</body>
</html>